package com.seguriapp.entities;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Represents a MediaContent entity.
 * 
 * @author Tania Gonzales(taniadgv@gmail.com)
 */

public class MediaContent implements Serializable {

  private static final long serialVersionUID = -5278674142845370483L;

  private Long id;

  private MediaContentType type;

  private String content;

  private Complaint complaint;

  public MediaContent() {
  }

  public MediaContent(final MediaContentType type, final String content) {
    this.type = type;
    this.content = content;
  }

  public Long getId() {
    return id;
  }

  public MediaContentType getType() {
    return type;
  }

  public String getContent() {
    return content;
  }

  public Complaint getComplaint() {
    return complaint;
  }

  public void setId(final Long id) {
    this.id = id;
  }

  public void setType(final MediaContentType type) {
    this.type = type;
  }

  public void setContent(final String content) {
    this.content = content;
  }

  public void setComplaint(final Complaint complaint) {
    this.complaint = complaint;
  }

  public Map<String, Object> toJsonString() {
    final Map<String, Object> map = new LinkedHashMap<String, Object>();
    map.put("id", id);
    map.put("type", type);
    map.put("content", content);
    return map;
  }

}
